function create(obj){
    function Son(){}
    Son.prototype = obj
    return new Son()
}

function render(origin){
    let clone = create(origin)
    clone.getUserInfo = function (){
        console.log(this.info)
    }
    return clone
}

let parent = {
    info:{
        name: 'ck',
        age: 19
    }
}

const son1 = render(parent)
son1.getUserInfo()
